﻿/**

* @author admin

*/


$(document).ready(onLoadComplete)
 
function onLoadComplete(evn){

	/*
     if (navigator.geolocation.getCurrentPosition) { 

     	var a = navigator.geolocation.getCurrentPosition(
     	
     		function  (position) {  
     		     
     		    var coords = position.coords;
     			coords.accuracy=1;
     				//alert("qwe" +coords.accuracy );
     		   	 showMap(coords.latitude, coords.longitude,coords.accuracy);
     		});
     		
      } 
	*/

		showMap(-34.397, 150.644);
		hideDateRangePicker();
		
}

function showMap(lat,lng,acur){
	//var latlng = new google.maps.LatLng(-34.397, 150.644);
	var latlng = new google.maps.LatLng(lat, lng);
    var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
} 
